package com.learning.mybatis.base.simple.xml.entity;

import lombok.Getter;
import lombok.Setter;

import java.util.Date;
import java.util.StringJoiner;

/**
 * ClassName: User
 * Description: 实体类
 * Date: 2020/7/22 9:52 【需求编号】
 *
 * @author Sam Sho
 * @version V1.0.0
 */
@Setter
@Getter
public class User {
    private int id;
    private String name;
    private int age;
    private String sex;
    private Date createTime;

    @Override
    public String toString() {
        return new StringJoiner(", ", User.class.getSimpleName() + "[", "]")
                .add("id=" + id)
                .add("name='" + name + "'")
                .add("age=" + age)
                .add("sex=" + sex)
                .add("createTime=" + createTime)
                .toString();
    }
}
